package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public  class Rating  extends Model
{
	public Rating() {
	}
	
	public Rating(Service service, User user, int rating) {
		this.service = service;
		this.user = user;
		this.rating = rating;
	}
	@ManyToOne
	public Service service;
	
	@ManyToOne
	public User user;

	public int rating;
	

}
